using System;
using Tribe.Cache.Helpers;
using Xunit;

namespace Tribe.Cache.Test
{
    public class HelperTests
    {
        [Fact]
        public void WhenANumberIsGreaterThanZeroShouldReturnTrue()
        {
            Assert.True(TimeSpan.FromSeconds(1).HasTime());
        }
        [Fact]
        public void WhenANumberIsZeroShouldReturnFalse()
        {
            Assert.False(TimeSpan.FromSeconds(0).HasTime());
        }
        [Fact]
        public void WhenANumberIsNegativeShouldReturnFalse()
        {
            Assert.False(TimeSpan.FromSeconds(-15).HasTime());
        }

    }
}